import Layout from '@/layout/index'

export default function pushPlat(rs) {
  if (!rs) {
    rs = []
  }
  rs.push({
    path: '/',
    component: Layout,
    name: '票务管理',
    redirect: '/tictManager/tictReport',
    meta: {
      title: '票务管理',
      icon: 'nested'
    },
    children: [
      {
        path: 'tictReport',
        name: 'tictReport',
        component: () => import('@/views/tict/report/tictList.vue'),
        meta: { title: '票务基本信息', icon: 'form' },

      },{
        name: 'seatList',
        path: '/seatList',
        meta: {
          title: '座位图管理',
          breadcrumb: []
        },
        component: () => import('@/views/tict/seats/seatList.vue'),
      }, {
         name:'addTict',
         path:'/addTict',
        meta:{title:'新增票务基本信息',breadcrumb:[]},
        component: () => import('@/views/tict/report/addTict.vue'),
      },{
        name:'editTict',
          path:'/editTict/:uuid',
        meta:{title:'修改票务基本信息',breadcrumb:[]},
        component: () => import('@/views/tict/report/editTict.vue'),

        },
      {
        name: 'addSeat',
        path: '/addSeat',
        meta: {
          title: '新增座位图',
          breadcrumb: []
        },
        component: () => import('@/views/tict/seats/addSeat.vue'),
        hidden: true
      },{
        name: 'editSeat',
        path: '/editSeat',
        meta: {
          title: '修改座位图',
          breadcrumb: []
        },
        component: () => import('@/views/tict/seats/editSeat.vue'),
        hidden: true
      },{
        name: 'couponList',
        path: '/couponList',
        meta: {
          title: '优惠劵管理',
          breadcrumb: []
        },
        component: () => import('@/views/tict/coupon/couponList.vue')
      },{
    name: 'addCoupon',
      path: '/addCoupon',
      meta: {
      title: '新增优惠劵',
        breadcrumb: []
    },
    component: () => import('@/views/tict/coupon/addCoupon.vue')
  },{
    name: 'editCoupon',
      path: '/editCoupon/:uuid',
      meta: {
      title: '编辑优惠劵',
        breadcrumb: []
    },
    component: () => import('@/views/tict/coupon/editCoupon.vue')
  },{
        name: 'couponList',
        path: '/couponList',
        meta: {
          title: '优惠劵管理',
          breadcrumb: []
        },
        component: () => import('@/views/tict/coupon/couponList.vue')
      }, {
        name: 'salesPlan',
        path: '/salesPlan',
        meta: {
          title: '票务发售计划',
          breadcrumb: []
        },

        component: () => import('@/views/tict/salesPlan/salesPlanList.vue')
      }, {
      name:'addSalesPlan',
      path:'/addSalesPlan',
      meta:{title:'新增票务发售计划',breadcrumb:[]},
    component: () => import('@/views/tict/salesPlan/addSalesPlan.vue'),
  },{
    name:'editSalesPlan',
      path:'/editSalesPlan/:uuid',
      meta:{title:'修改票务发售计划',breadcrumb:[]},
    component: () => import('@/views/tict/salesPlan/editSalesPlan.vue'),

  },{
        name: 'recedeTict',
        path: '/recedeTict',
        meta: {
          title: '退票管理',
          breadcrumb: []
        },
        component: () => import('@/views/tict/recede/recedeTictList.vue')
      }, {
        name: 'tictOrderList',
        path: '/tictOrderList',
        meta: {
          title: '已预定票务',
          breadcrumb: []
        },
        component: () => import('@/views/tict/orderList/orderList.vue')
      }, {
        name: 'tictStatistics',
        path: '/tictStatistics',
        meta: {
          title: '购票统计',
          breadcrumb: []
        },
        component: () => import('@/views/tict/orderList/tictStatistics.vue')
      }, {
        name: 'ticActivity',
        path: '/ticActivity',
        meta: { title: '活动管理', breadcrumb: [] },
        component: () => import('@/views/tict/activity/activityTic.vue')
      },  {
      name: 'addTicActivity',
      path: '/addTicActivity',
      meta: { title: '新增活动管理', breadcrumb: [] },
      component: () => import('@/views/tict/activity/addActivity.vue')
  },{
    name: 'editTicActivity',
      path: '/editTicActivity/:uuid',
      meta: { title: '编辑活动管理', breadcrumb: [] },
    component: () => import('@/views/tict/activity/editActivity.vue')
  },{
        name: 'tictAudit',
        path: '/tictAudit',
        meta: { title: '审核管理', breadcrumb: [] },
        component: () => import('@/views/tict/audit/tictAuditList.vue')
      },{
      name:'lookTict',
      path:'/lookTict/:uuid',
      meta:{title:'查看售票计划'},
    component: () => import('@/views/tict/audit/lookTict.vue')
  }, {
        name: 'checkCensus',
        path: '/checkCensus',
        meta: {
          title: '检票统计', breadcrumb: []
        }, component: () => import('@/views/tict/check/checkCensus.vue')
      }, {
        name: 'checkTick',
        path: '/checkTick',
        meta: { title: '检票记录', breadcrumb: [] },
        component: () => import('@/views/tict/check/checkTickRecord.vue')
      }, {
        name: 'seat',
        path: '/seat',
        meta: { title: '座位管理', breadcrumb: [] },
        component: () => import('@/views/tict/seats/seatList.vue')
      },
    ]
  })
  return rs
}
